﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Pansoft.ORM.UnitTest
{
    [TestClass]
    public class DbMarketTest
    {
        [TestMethod]
        public void TestDbMarketConstructorDbStoreInitialize()
        {
            var sample = new SampleDbMarket("test");
            Assert.IsNotNull(sample.SampleProducts, "DbMarket创建失败，其中的Stores没有被初始化");
        }

        //[TestMethod]
        //public void TestDbStoreAddProduct()
        //{
        //    var sample = new SampleDbMarket("test");
        //    var original = sample.SampleProducts.Count;
        //    sample.SampleProducts.Add(new SampleProduct());
        //    var expect = original + 1;
        //    var result = sample.SampleProducts.Count;
        //    Assert.AreEqual(expect,result,"增加失败");

        //}
    }
}